COSC 1437.3S7 PROGRAM TWO   Program Requirements:   Modify Program One to add the following: 1)      Assignment operator (“=”). 2)      Comparison operators (“<”, “<=”, “==”, “!=”, “>=”,...

profilerufnan_ogng

COSC 1437.3S7

PROGRAM TWO

 

Program Requirements:

 

Modify Program One to add the following:

1)      Assignment operator (“=”).

2)      Comparison operators (“<”, “<=”, “==”, “!=”, “>=”, “>”)

3)      Concatenation operator (“&”).

4)      Concatenation and assignment operator (“&=”)

5)      Input operator (“>>”).

6)      Output operator (“<<”).

 

Above items 1 through 4 should have versions that work with a String object and a “C” type string on the right of the operator.

 

Items 5 and 6 require a String object to the right of the operator.

 

Items 1 and 4 will require a String object on the left of the operator.

 

Items 2 and 3 should have versions that allow both a String object and a “C” type string on the left of the operator.

 

Item 3 does not modify the object to the left of the operator.

 

To Turn In:

 

1)   An electronic copy of the .cpp and .h files in the project folder as created by Visual Studio. This will be emailed to the instructor with the subject line “COSC 1437.3S7 – Lab 2”.

2)   If you wish any feedback on your work, turn in a printed listing of the .cpp and .h files that you created.

 

Date Due:       23 June 2016

    • 10 years ago
    • 999999.99
    Answer(0)
    Bids(0)